<?php
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-21
 * Time: 11:15
 * @description: 迭代器 模式 demo
 * @Author: yfl
 * @QQ 554665488
 */

define('BASEDIR', __DIR__ . '/..');

require_once __DIR__ . '/Loader.php';
spl_autoload_register("\\DesignModel\\Loader::autoload");

$allUser = new \DesignModel\Iterator\AllUser();


foreach ($allUser as $index => $item) {
//    var_dump($item->name);
}